Remove hack from GPX writer that over-aggressively quoted apostrophes. Doing
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 23 Mar 2013 21:25:32 +0000 (21:25 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 23 Mar 2013 21:25:32 +0000 (21:25 +0000)
that inside a CDATA, for example, is Very Bad.
Manually edited the GPS reference files that were affected - all of which
 were our own data, anyway...

git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4357 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/gpx.cc
gpsbabel/reference/LineStyles.gpx
gpsbabel/reference/compegps-wpt.gpx
gpsbabel/reference/google-direction.gpx
gpsbabel/reference/route/cst-sample.gpx
gpsbabel/reference/track/teletype.gpx
gpsbabel/reference/umsonstdraussen.gpx
gpsbabel/reference/unicsv.gpx

index 5d27c0ecab3e83a45ee779461422b5cc7cb2609c..510900ecc5aa003576e76c5940f1a32c21a9ab91 100644 (file)
@@ -1362,11 +1362,6 @@ gpx_wr_deinit(void)
 {
   writer.writeEndDocument();
 
-  // TODO: technically, &apos is almost never required to be encoded, but
-  // the pre-Qt version of our serializer did, so we'll manually do it here
-  // for now, in the early days, just to keep things as we've always done it.
-  ostring.replace("'", "&apos;");
-
   // TODO: The old writer would more aggressively protect you from control
   // character nonsense.  The control-Z (032)is the only thing that appears in
   // our test suite, but let's toss things we know aren't allowed in GPX.
index c33483642d249717413b0a89a8317046446ed99e..e04e02c0a9033312945c570ab781b9c85b50af78 100644 (file)
@@ -81,8 +81,8 @@
   </wpt>
   <wpt lat="37.522349358" lon="-122.284910083">
     <name>NOTE 2</name>
-    <cmt>how GPX from GPSBabel shows Topo track desc as of 2012: (line name and line style are NOT related to actual color or width)  &lt;trk&gt;   &lt;name&gt;red line&lt;/name&gt;   &lt;desc&gt;Style=red med, Width=3, Dashed=0, Color=#ff0000&lt;/desc&gt; &lt;number&gt;1&lt;/number&gt; &lt;trkseg&gt; ... (Topo menu colors are stored in the file as web-style hex RGB)   Red=#ff0000, Yellow=#ffff00, Green=#008000, Blue=#000080,   Purple=#800080, Black=#000000, White=#ffffff (Topo solid  line widths: Hairline=1, Thin=2, Medium=3, Thick=4) (Topo dashed line widths: Hairline=1, Thin=2) SRE&apos;s tpo.c mod stuffs Style/Width/Dashed/Color fields into &quot;desc&quot; field   under the assumption that something will post-process GPX or KML output   and move information from desc to private extensions (solid  lines have &quot;Dashed=0&quot;, can have width of 1=hairline to 4=thick) (dashed lines have &quot;Dashed=1&quot;, can only have width of 1=hairline or 2=thin) </cmt>
-    <desc>how GPX from GPSBabel shows Topo track desc as of 2012: (line name and line style are NOT related to actual color or width)  &lt;trk&gt;   &lt;name&gt;red line&lt;/name&gt;   &lt;desc&gt;Style=red med, Width=3, Dashed=0, Color=#ff0000&lt;/desc&gt; &lt;number&gt;1&lt;/number&gt; &lt;trkseg&gt; ... (Topo menu colors are stored in the file as web-style hex RGB)   Red=#ff0000, Yellow=#ffff00, Green=#008000, Blue=#000080,   Purple=#800080, Black=#000000, White=#ffffff (Topo solid  line widths: Hairline=1, Thin=2, Medium=3, Thick=4) (Topo dashed line widths: Hairline=1, Thin=2) SRE&apos;s tpo.c mod stuffs Style/Width/Dashed/Color fields into &quot;desc&quot; field   under the assumption that something will post-process GPX or KML output   and move information from desc to private extensions (solid  lines have &quot;Dashed=0&quot;, can have width of 1=hairline to 4=thick) (dashed lines have &quot;Dashed=1&quot;, can only have width of 1=hairline or 2=thin) </desc>
+    <cmt>how GPX from GPSBabel shows Topo track desc as of 2012: (line name and line style are NOT related to actual color or width)  &lt;trk&gt;   &lt;name&gt;red line&lt;/name&gt;   &lt;desc&gt;Style=red med, Width=3, Dashed=0, Color=#ff0000&lt;/desc&gt; &lt;number&gt;1&lt;/number&gt; &lt;trkseg&gt; ... (Topo menu colors are stored in the file as web-style hex RGB)   Red=#ff0000, Yellow=#ffff00, Green=#008000, Blue=#000080,   Purple=#800080, Black=#000000, White=#ffffff (Topo solid  line widths: Hairline=1, Thin=2, Medium=3, Thick=4) (Topo dashed line widths: Hairline=1, Thin=2) SRE's tpo.c mod stuffs Style/Width/Dashed/Color fields into &quot;desc&quot; field   under the assumption that something will post-process GPX or KML output   and move information from desc to private extensions (solid  lines have &quot;Dashed=0&quot;, can have width of 1=hairline to 4=thick) (dashed lines have &quot;Dashed=1&quot;, can only have width of 1=hairline or 2=thin) </cmt>
+    <desc>how GPX from GPSBabel shows Topo track desc as of 2012: (line name and line style are NOT related to actual color or width)  &lt;trk&gt;   &lt;name&gt;red line&lt;/name&gt;   &lt;desc&gt;Style=red med, Width=3, Dashed=0, Color=#ff0000&lt;/desc&gt; &lt;number&gt;1&lt;/number&gt; &lt;trkseg&gt; ... (Topo menu colors are stored in the file as web-style hex RGB)   Red=#ff0000, Yellow=#ffff00, Green=#008000, Blue=#000080,   Purple=#800080, Black=#000000, White=#ffffff (Topo solid  line widths: Hairline=1, Thin=2, Medium=3, Thick=4) (Topo dashed line widths: Hairline=1, Thin=2) SRE's tpo.c mod stuffs Style/Width/Dashed/Color fields into &quot;desc&quot; field   under the assumption that something will post-process GPX or KML output   and move information from desc to private extensions (solid  lines have &quot;Dashed=0&quot;, can have width of 1=hairline to 4=thick) (dashed lines have &quot;Dashed=1&quot;, can only have width of 1=hairline or 2=thin) </desc>
   </wpt>
   <wpt lat="37.522691488" lon="-122.288962007">
     <name>NOTE 3</name>
index d39334937bdbc27228e58673844f7e423299c3d7..a9b5e31116aaf100cfede6821e7d10495b3de0dd 100644 (file)
   <wpt lat="45.991673928" lon="11.746357624">
     <ele>509.400000</ele>
     <name>F18051</name>
-    <cmt>ARSIE&apos;</cmt>
-    <desc>ARSIE&apos;</desc>
+    <cmt>ARSIE'</cmt>
+    <desc>ARSIE'</desc>
     <sym>Waypoint</sym>
   </wpt>
   <wpt lat="46.018978905" lon="11.911089765">
index 0a60320d65c7648e0c79f745a4421a4fcc15774f..2a3d98106092a31ac1a125a4752732192a9ac18e 100644 (file)
@@ -4,7 +4,7 @@
   <bounds minlat="43.604690000" minlon="1.444570000" maxlat="43.926910000" maxlon="2.146210000"/>
   <rte>
     <name>step001</name>
-    <desc>Head south on Rue du Palais toward Rue de l&apos;Ort en Salvy</desc>
+    <desc>Head south on Rue du Palais toward Rue de l'Ort en Salvy</desc>
     <rtept lat="43.926910000" lon="2.146200000">
       <name>RPT001</name>
     </rtept>
   </rte>
   <rte>
     <name>step015</name>
-    <desc>Turn right onto Route d&apos;Agde/D112Go through 2 roundabouts</desc>
+    <desc>Turn right onto Route d'Agde/D112Go through 2 roundabouts</desc>
     <rtept lat="43.627670000" lon="1.478470000">
       <name>RPT1692</name>
     </rtept>
   </rte>
   <rte>
     <name>step016</name>
-    <desc>Route d&apos;Agde/D112 turns slightly right and becomes Av. Yves BrunaudGo through 1 roundabout</desc>
+    <desc>Route d'Agde/D112 turns slightly right and becomes Av. Yves BrunaudGo through 1 roundabout</desc>
     <rtept lat="43.619580000" lon="1.468810000">
       <name>RPT1821</name>
     </rtept>
index ff98bcf15047da6c05c4ef0cde23327554f3e3cf..da397fb15d176e1f8c7ea54c9c61e4c4a847723c 100644 (file)
@@ -6,8 +6,8 @@
     <ele>1272.900000</ele>
     <time>2005-06-18T08:53:36Z</time>
     <name>1</name>
-    <cmt>Vue de notre chemin du retour.., mais c&apos;est par la route qu&apos;on monte</cmt>
-    <desc>Vue de notre chemin du retour.., mais c&apos;est par la route qu&apos;on monte</desc>
+    <cmt>Vue de notre chemin du retour.., mais c'est par la route qu'on monte</cmt>
+    <desc>Vue de notre chemin du retour.., mais c'est par la route qu'on monte</desc>
     <url>file://C:/Mesdoc/Mes%20images/pic%20midi/DSCF0446.JPG</url>
   </wpt>
   <wpt lat="47.559400000" lon="2.713550000">
@@ -47,7 +47,7 @@
       <ele>1272.900000</ele>
       <time>2005-06-18T08:53:36Z</time>
       <name>1</name>
-      <desc>Vue de notre chemin du retour.., mais c&apos;est par la route qu&apos;on monte</desc>
+      <desc>Vue de notre chemin du retour.., mais c'est par la route qu'on monte</desc>
     </rtept>
     <rtept lat="47.559400000" lon="2.713550000">
       <ele>1525.300000</ele>
         <ele>1272.900000</ele>
         <time>2005-06-18T08:53:36Z</time>
         <name>1</name>
-        <desc>Vue de notre chemin du retour.., mais c&apos;est par la route qu&apos;on monte</desc>
+        <desc>Vue de notre chemin du retour.., mais c'est par la route qu'on monte</desc>
       </trkpt>
       <trkpt lat="47.565210000" lon="2.713680000">
         <ele>1272.900000</ele>
index 5a8f34d3202898f6f31c66b37f8a53f9fb7baf42..496e15d2fdb6d1c2786fefbed3b0e2e8c07d0737 100644 (file)
     <desc>371 7th Ave\Penn Plz\Fashion Ave, new york, NY 10001, United States</desc>
   </wpt>
   <wpt lat="-73.975375000" lon="40.758271000">
-    <name>St Patrick&apos;s Cathedral</name>
-    <cmt>NE[1.30 mi] - St Patrick&apos;s Cathedral, 460 Madison Ave, New York, NY 10022 (212-7532261)</cmt>
-    <desc>NE[1.30 mi] - St Patrick&apos;s Cathedral, 460 Madison Ave, New York, NY 10022 (212-7532261)</desc>
+    <name>St Patrick's Cathedral</name>
+    <cmt>NE[1.30 mi] - St Patrick's Cathedral, 460 Madison Ave, New York, NY 10022 (212-7532261)</cmt>
+    <desc>NE[1.30 mi] - St Patrick's Cathedral, 460 Madison Ave, New York, NY 10022 (212-7532261)</desc>
   </wpt>
   <wpt lat="-73.975375000" lon="40.758271000">
-    <name>St Patrick&apos;s Cathedral</name>
+    <name>St Patrick's Cathedral</name>
     <cmt>460 Madison Ave, New York, NY 10022, 212-7532261</cmt>
     <desc>460 Madison Ave, New York, NY 10022, 212-7532261</desc>
   </wpt>
index 7ff5d3c033556a6a5861ab9907d5ca4ff84f8a69..13d8eaf0f4a5f7cedeef0e2013ae84781814b205 100644 (file)
   </wpt>
   <wpt lat="50.706969984" lon="7.145749982">
     <name>Rheinkultur</name>
-    <cmt>Line Up: A + E aka Masta Ace + Edo G, Baddies, Black President, Black Stone Cherry, Boppin B, Bubonix, Culcha Candela, Get Well Soon, In December, Montreal, No Use For A Name, Olli Schulz, Paramount Styles, Pete Philly + Perquisite, She&apos;s All That, Talion aka Snaga + Fard, The Casting Out, Tone, Virginia Jetzt! Datum: 04.07.2009.</cmt>
-    <desc>Line Up: A + E aka Masta Ace + Edo G, Baddies, Black President, Black Stone Cherry, Boppin B, Bubonix, Culcha Candela, Get Well Soon, In December, Montreal, No Use For A Name, Olli Schulz, Paramount Styles, Pete Philly + Perquisite, She&apos;s All That, Talion aka Snaga + Fard, The Casting Out, Tone, Virginia Jetzt! Datum: 04.07.2009.</desc>
+    <cmt>Line Up: A + E aka Masta Ace + Edo G, Baddies, Black President, Black Stone Cherry, Boppin B, Bubonix, Culcha Candela, Get Well Soon, In December, Montreal, No Use For A Name, Olli Schulz, Paramount Styles, Pete Philly + Perquisite, She's All That, Talion aka Snaga + Fard, The Casting Out, Tone, Virginia Jetzt! Datum: 04.07.2009.</cmt>
+    <desc>Line Up: A + E aka Masta Ace + Edo G, Baddies, Black President, Black Stone Cherry, Boppin B, Bubonix, Culcha Candela, Get Well Soon, In December, Montreal, No Use For A Name, Olli Schulz, Paramount Styles, Pete Philly + Perquisite, She's All That, Talion aka Snaga + Fard, The Casting Out, Tone, Virginia Jetzt! Datum: 04.07.2009.</desc>
     <link href="www.rheinkultur.com">
       <text>www.rheinkultur.com</text>
     </link>
   </wpt>
   <wpt lat="54.402619991" lon="11.161179990">
     <name>Fehmarn Open Air</name>
-    <cmt>Das Fehrman Open Air Festival ist für seine friedliche und familiäre Atmosphäre weit über die Grenzen Deutschlands hinaus bekannt. Programm: Bradley&apos;s Circus, Chris Farlowe, Cosmic Finger, Errorhead, Großenbroder Shanty Chor, Hamburg Blues Band, Jimmy Cornett, Joanne Shaw Taylor, Peer Knacke, Purple, Rohstoff, Ten Years After. Datum: 05.09.2009, Beginn: 11:00 Uhr.</cmt>
-    <desc>Das Fehrman Open Air Festival ist für seine friedliche und familiäre Atmosphäre weit über die Grenzen Deutschlands hinaus bekannt. Programm: Bradley&apos;s Circus, Chris Farlowe, Cosmic Finger, Errorhead, Großenbroder Shanty Chor, Hamburg Blues Band, Jimmy Cornett, Joanne Shaw Taylor, Peer Knacke, Purple, Rohstoff, Ten Years After. Datum: 05.09.2009, Beginn: 11:00 Uhr.</desc>
+    <cmt>Das Fehrman Open Air Festival ist für seine friedliche und familiäre Atmosphäre weit über die Grenzen Deutschlands hinaus bekannt. Programm: Bradley's Circus, Chris Farlowe, Cosmic Finger, Errorhead, Großenbroder Shanty Chor, Hamburg Blues Band, Jimmy Cornett, Joanne Shaw Taylor, Peer Knacke, Purple, Rohstoff, Ten Years After. Datum: 05.09.2009, Beginn: 11:00 Uhr.</cmt>
+    <desc>Das Fehrman Open Air Festival ist für seine friedliche und familiäre Atmosphäre weit über die Grenzen Deutschlands hinaus bekannt. Programm: Bradley's Circus, Chris Farlowe, Cosmic Finger, Errorhead, Großenbroder Shanty Chor, Hamburg Blues Band, Jimmy Cornett, Joanne Shaw Taylor, Peer Knacke, Purple, Rohstoff, Ten Years After. Datum: 05.09.2009, Beginn: 11:00 Uhr.</desc>
     <link href="www.fehmarnfestivalgroup.com">
       <text>www.fehmarnfestivalgroup.com</text>
     </link>
index ba17108fd4facfad9979ebbb545f28d62228cb9a..97e0ab24613fa7e5c0fff67b3a6c1147e735f383 100644 (file)
@@ -34,8 +34,8 @@
   </wpt>
   <wpt lat="36.087770000" lon="-86.809730000">
     <name>GC309F</name>
-    <cmt>Shy&apos;s Hill by FireFighterEng33</cmt>
-    <desc>Shy&apos;s Hill by FireFighterEng33</desc>
+    <cmt>Shy's Hill by FireFighterEng33</cmt>
+    <desc>Shy's Hill by FireFighterEng33</desc>
   </wpt>
   <wpt lat="36.057500000" lon="-86.892000000">
     <name>GC317A</name>